package com.zfzs.post.model.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @description: 修改手机号码
 * @author: ck
 * @create: 2019-09-06 17:00
 **/
@Data
public class UpdatePhoneDTO {
    //身份证号码
    @NotBlank(message = "请输入手机号码")
    @Pattern(regexp = "^1(2|3|4|5|6|7|8|9)\\d{9}$",message = "手机号码格式不正确")
    private String phone;
    //验证码
    @NotBlank(message = "请输入验证码")
    private String code;
    //验证码uuid
    @NotBlank (message = "uuid必填")
    private String uuid;
}
